from logic.articleDao import articleDao
from logic.searchDao import searchDao
from vo.ViewBaseObject import ViewBaseObject

# 搜索视图
class SearchViewObject(ViewBaseObject):

    def __init__(self,search):
        self.navname = search
        self.arts = searchDao().search(search)
        super().__init__()

def build(search):
    return SearchViewObject(search)